package com.foreverwin.mes.warehouse.model;

import java.io.Serializable;

import com.baomidou.mybatisplus.annotations.TableName;
import com.baomidou.mybatisplus.activerecord.Model;
import java.util.Date;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableField;
import java.io.Serializable;
import com.baomidou.mybatisplus.enums.IdType;

/**
 * <p>
 * 库存调拨记录
 * </p>
 *
 * @author Ervin Chen
 * @since 2020-02-18
 */
@TableName("Z_INVENTORY_MOVE_LOG")
public class InventoryMoveLog extends Model<InventoryMoveLog> {

    private static final long serialVersionUID = 1L;

    /**
     * 主键
     */
   @TableId(value = "HANDLE", type = IdType.INPUT)
   private String handle;
    /**
     * 站点
     */
   @TableField("SITE")
   private String site;
    /**
     * 库存编号
     */
   @TableField("INVENTORY_ID")
   private String inventoryId;
    /**
     * 物料
     */
   @TableField("ITEM_BO")
   private String itemBo;
    /**
     * 物料单位
     */
   @TableField("UNIT_OF_MEASURE")
   private String unitOfMeasure;
    /**
     * 收货批次
     */
   @TableField("BATCH_NUMBER")
   private String batchNumber;
    /**
     * 供应商批次
     */
   @TableField("VENDOR_LOT")
   private String vendorLot;
    /**
     * 调拨数量
     */
   @TableField("QTY")
   private Double qty;
    /**
     * 原因代码
     */
   @TableField("REASON_CODE")
   private String reasonCode;
    /**
     * 源库存地点
     */
   @TableField("STORAGE_LOCATION")
   private String storageLocation;
    /**
     * 目标库存地点
     */
   @TableField("TARGET_STORAGE_LOCATION")
   private String targetStorageLocation;
    /**
     * 创建日期
     */
   @TableField("CREATED_DATE_TIME")
   private Date createdDateTime;
    /**
     * 更新日期
     */
   @TableField("UPDATED_DATE_TIME")
   private Date updatedDateTime;
    /**
     * 创建人员
     */
   @TableField("CREATE_USER_BO")
   private String createUserBo;
    /**
     * 更新人员
     */
   @TableField("UPDATE_USER_BO")
   private String updateUserBo;


   public String getHandle() {
      return handle;
   }

   public void setHandle(String handle) {
      this.handle = handle;
   }

   public String getSite() {
      return site;
   }

   public void setSite(String site) {
      this.site = site;
   }

   public String getInventoryId() {
      return inventoryId;
   }

   public void setInventoryId(String inventoryId) {
      this.inventoryId = inventoryId;
   }

   public String getItemBo() {
      return itemBo;
   }

   public void setItemBo(String itemBo) {
      this.itemBo = itemBo;
   }

   public String getUnitOfMeasure() {
      return unitOfMeasure;
   }

   public void setUnitOfMeasure(String unitOfMeasure) {
      this.unitOfMeasure = unitOfMeasure;
   }

   public String getBatchNumber() {
      return batchNumber;
   }

   public void setBatchNumber(String batchNumber) {
      this.batchNumber = batchNumber;
   }

   public String getVendorLot() {
      return vendorLot;
   }

   public void setVendorLot(String vendorLot) {
      this.vendorLot = vendorLot;
   }

   public Double getQty() {
      return qty;
   }

   public void setQty(Double qty) {
      this.qty = qty;
   }

   public String getReasonCode() {
      return reasonCode;
   }

   public void setReasonCode(String reasonCode) {
      this.reasonCode = reasonCode;
   }

   public String getStorageLocation() {
      return storageLocation;
   }

   public void setStorageLocation(String storageLocation) {
      this.storageLocation = storageLocation;
   }

   public String getTargetStorageLocation() {
      return targetStorageLocation;
   }

   public void setTargetStorageLocation(String targetStorageLocation) {
      this.targetStorageLocation = targetStorageLocation;
   }

   public Date getCreatedDateTime() {
      return createdDateTime;
   }

   public void setCreatedDateTime(Date createdDateTime) {
      this.createdDateTime = createdDateTime;
   }

   public Date getUpdatedDateTime() {
      return updatedDateTime;
   }

   public void setUpdatedDateTime(Date updatedDateTime) {
      this.updatedDateTime = updatedDateTime;
   }

   public String getCreateUserBo() {
      return createUserBo;
   }

   public void setCreateUserBo(String createUserBo) {
      this.createUserBo = createUserBo;
   }

   public String getUpdateUserBo() {
      return updateUserBo;
   }

   public void setUpdateUserBo(String updateUserBo) {
      this.updateUserBo = updateUserBo;
   }

   public static final String HANDLE = "HANDLE";

   public static final String SITE = "SITE";

   public static final String INVENTORY_ID = "INVENTORY_ID";

   public static final String ITEM_BO = "ITEM_BO";

   public static final String UNIT_OF_MEASURE = "UNIT_OF_MEASURE";

   public static final String BATCH_NUMBER = "BATCH_NUMBER";

   public static final String VENDOR_LOT = "VENDOR_LOT";

   public static final String QTY = "QTY";

   public static final String REASON_CODE = "REASON_CODE";

   public static final String STORAGE_LOCATION = "STORAGE_LOCATION";

   public static final String TARGET_STORAGE_LOCATION = "TARGET_STORAGE_LOCATION";

   public static final String CREATED_DATE_TIME = "CREATED_DATE_TIME";

   public static final String UPDATED_DATE_TIME = "UPDATED_DATE_TIME";

   public static final String CREATE_USER_BO = "CREATE_USER_BO";

   public static final String UPDATE_USER_BO = "UPDATE_USER_BO";

   @Override
   protected Serializable pkVal() {
      return this.handle;
   }

   @Override
   public String toString() {
      return "InventoryMoveLog{" +
         "handle = " + handle +
         ", site = " + site +
         ", inventoryId = " + inventoryId +
         ", itemBo = " + itemBo +
         ", unitOfMeasure = " + unitOfMeasure +
         ", batchNumber = " + batchNumber +
         ", vendorLot = " + vendorLot +
         ", qty = " + qty +
         ", reasonCode = " + reasonCode +
         ", storageLocation = " + storageLocation +
         ", targetStorageLocation = " + targetStorageLocation +
         ", createdDateTime = " + createdDateTime +
         ", updatedDateTime = " + updatedDateTime +
         ", createUserBo = " + createUserBo +
         ", updateUserBo = " + updateUserBo +
         "}";
   }
}